import request from '/@/utils/request'
import {prefix} from '/@/api/pms'

// 创建
export function create(data: object) {
    return request({
        url: prefix + '/pmsFreightTemplate/create',
        method: 'post',
        data
    })
}

// 编辑
export function update(data: object) {
    return request({
        url: prefix + '/pmsFreightTemplate/update',
        method: 'post',
        data
    })
}

// 分页
export function pageList(data: object) {
    return request({
        url: prefix + '/pmsFreightTemplate/pageList',
        method: 'post',
        data
    })
}

// 移除
export function remove(id) {
    return request({
        url: prefix + '/pmsFreightTemplate/remove/'+ id,
        method: 'get'
    })
}

// 修改状态
export function updateStatus(data: object) {
    return request({
        url: prefix + '/pmsFreightTemplate/updateStatus',
        method: 'get',
		params:data
		
    })
}

// 获取信息
export function get(id) {
    return request({
        url: prefix + '/pmsFreightTemplate/get/'+ id,
        method: 'get'
    })
}


export function getList(data: object) {
    return request({
        url: prefix + '/pmsFreightTemplate/getList',
        method: 'get',
		params:data
		
    })
}

